package com.itcat.service.impl;/*
 * @Author: gonhsl
 * @Date:2022-04-02-1:21
 * */

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itcat.api.mysql.OmsOrderReturnReasonApi;
import com.itcat.mysql.pojo.OmsOrderReturnReason;
import com.itcat.service.OmsOrderReturnReasonService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class OmsOrderReturnReasonServiceImpl implements OmsOrderReturnReasonService {
    @DubboReference
    private OmsOrderReturnReasonApi omsOrderReturnReasonApi;
    @Override
    public Page<OmsOrderReturnReason> findList(Page<OmsOrderReturnReason> page) {
       return omsOrderReturnReasonApi.findList(page);
    }

    @Override
    public void create(OmsOrderReturnReason returnReason) {
        omsOrderReturnReasonApi.create(returnReason);
    }

    @Override
    public void delete(List<Integer> ids) {
        omsOrderReturnReasonApi.delete(ids);
    }

    @Override
    public void updateStatus(List<Integer> ids, Integer status) {
        omsOrderReturnReasonApi.updateStatus(ids,status);
    }

    @Override
    public void update(OmsOrderReturnReason returnReason, Integer id) {
        omsOrderReturnReasonApi.update(returnReason,id);
    }

    @Override
    public OmsOrderReturnReason findOne(Integer id) {
    return    omsOrderReturnReasonApi.findOne(id);
    }
}
